#!/usr/bin/env python
# coding: UTF-8
#filename: D:/workspace/python/demo/mybatishandler/OracleDialect.py


'''
Created on 2013-7-15 下午3:24:24

@author: zhanghu
'''
class Dialect():
    #TOOD 丰富方言种类
    curTime = None
    isNull = None
    nullValue = 0
    defaultNnv_template = '%s(%s, %s) as %s' 
    
    def __init__(self):
        pass

class OracleDialect(Dialect):

    def __init__(self):
        Dialect.__init__(self)
        self.curTime = 'sysdate'
        self.isNull = 'NVL'
        pass


class MSSQLDialect(Dialect):
    
    def __init__(self):
        Dialect.__init__(self)
        self.curTime = 'getdate()'
        self.isNull = 'isnull'
        pass

class MYSQLDialect(Dialect):
    
    def __init__(self):
        Dialect.__init__(self)
        self.curTime = 'now()'
        pass
